<style>
    .price {
        margin-bottom: 5px;
        display: block;
        float: left;
        width: 100%;
    }

    .price i {
        font-size: 30px;
        cursor: pointer
    }

    .layui-input-block input {
        padding-left: 10px;
        height: 38px;
        margin-right: 5px;
        line-height: 38px;
        line-height: 36px \9;
        border: 1px solid #e6e6e6;
        background-color: #fff;
        border-radius: 2px;
    }</style>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <form class="layui-form" action="<?=url('combank/edit');?>">
                <input  type="hidden" name="id" value="<?=$info['id']?>"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">银行名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="bank_name" value="<?=$info['bank_name']?>" required lay-verify="required" placeholder="请输入银行名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">LOGO</label>
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn" id="myupimg">
                            上传单独
                        </button>
                        <input type="hidden" name="pic" value="<?=$info['pic']?>" />
                        <div style="display:inline-block;position:relative;">
                            <span style="position:absolute;right:-15px; top:-15px;cursor:pointer;color:#ccc;font-size:24px;<?php if(!$info['pic']):?>display:none;<?php endif;?>" id="closeimg">x</span>
                            <img id="pic" height=50 src="<?=$info['pic']?>" />
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">背景图</label>
                    <div class="layui-input-block">
                        <div class="layui-upload">
                            <button type="button" class="layui-btn" id="multiplepics">
                                <i class="layui-icon">&#xe67c;</i>上传
                            </button>
                            <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                预览图：
                                <div class="layui-upload-list" id="multiplepicsshow">
									<div style="display:inline-block;position:relative;margin-right:20px;">
            			      		  	  <input type="hidden" name="pics[]" value="<?=$info['background_pic'];?>" />
            			      			       <span style="position:absolute;right:-15px; top:-15px;cursor:pointer;color:#ccc;font-size:24px;<?php if(!$info['background_pic']):?>display:none;<?php endif;?>" onclick="closeimg(this)">x</span>
            			      			  <img height=100 src="<?=$info['background_pic']?>" />
            			      	    </div>
								</div>
                            </blockquote>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    layui.use(['form', 'upload'], function () {
        var $ = layui.$
            , upload = layui.upload
            , form = layui.form;
        form.render();
        var ue = UE.getEditor('container');
    });
</script>
